package com.epalmpay.service.activity.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.epalmpay.entity.ActivityRoutinesigned;
import com.epalmpay.mapper.ActivityRoutinesignedMapper;
import com.epalmpay.service.activity.IActivityRoutinesignedService;

/**
 * Created by Administrator on 2017/5/27.
 */
@Service("activityRoutinesignedService")
public class ActivityRoutinesignedServiceImpl implements IActivityRoutinesignedService{


    @Resource
    ActivityRoutinesignedMapper activityRoutinesignedMapper;

    @Override
    public int UpdateActivityByActivityId(ActivityRoutinesigned activityRoutinesigned) throws Exception {
        int status= activityRoutinesignedMapper.updateByPrimaryKeySelective(activityRoutinesigned);
        return status;
    }

    @Override
    public ActivityRoutinesigned QueryActivityByActivityId(Long activityId) throws Exception{
        ActivityRoutinesigned activityRoutinesigned=activityRoutinesignedMapper.selectByPrimaryKeyLeftJonhBaseData(activityId);
        return activityRoutinesigned;
    }

}
